STEP 9: We want to play against the computer, so it needs to choose rock, paper, or scissors too. To do this, we'll assign a number to each choice and then the program will pick one of the numbers using random.

  • Go to and drag Random Integer to the bottom of your program.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)